<%--
  Created by IntelliJ IDEA.
  User: 沐硕
  Date: 2024/3/25
  Time: 18:58
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %><!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>用户注册</title>
    <link rel="stylesheet" type="text/css" href="../layui-v2.9.10/layui/css/layui.css"/>
    <script src="../layui-v2.9.10/layui/layui.js" type="text/javascript" charset="utf-8"></script>
    <style>
        .layui-container {
            margin-top: 50px;
        }
        .layui-form-item {
            margin-bottom: 20px;
        }
        .layui-btn {
            width: 100%;
        }
        .rounded-form-container {
            border: 1px solid #e6e6e6;
            border-radius: 10px;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
            padding: 20px;
        }
    </style>
</head>
<body>
<div class="layui-container">
    <div class="rounded-form-container">
        <div style="display: flex; align-items: center; margin: 5px 0px; justify-content: center;">
            <h2>用户注册</h2>
        </div>

        <div class="layui-row">
        <div class="layui-col-md6 layui-col-md-offset3">

            <form class="layui-form" action="../register.do" method="post">
                <div class="layui-form-item">
                    <label class="layui-form-label" for="username">用户名：</label>
                    <div class="layui-input-block">
                        <input type="text" id="username" name="username" required lay-verify="required" placeholder="请输入用户名" autocomplete="off" class="layui-input">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label" for="password">密码：</label>
                    <div class="layui-input-block">
                        <input type="password" id="password" name="password" required lay-verify="required" placeholder="请输入密码" autocomplete="off" class="layui-input">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label" for="password2">确认密码：</label>
                    <div class="layui-input-block">
                        <input type="password" id="password2" name="password2" required lay-verify="required" placeholder="请确认密码" autocomplete="off" class="layui-input">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">性别：</label>
                    <div class="layui-input-block">
                        <input type="radio" id="male" name="gender" value="male" title="男">
                        <input type="radio" id="female" name="gender" value="female" title="女">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label" for="occupation">职业：</label>
                    <div class="layui-input-block">
                        <select id="occupation" name="occupation" lay-verify="required">
                            <option value="">请选择职业</option>
                            <option value="教师">教师</option>
                            <option value="学生">学生</option>
                            <option value="老板">老板</option>
                            <option value="司机">司机</option>
                            <option value="厨师">厨师</option>
                            <option value="校长">校长</option>
                            <option value="秘书">秘书</option>
                        </select>
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">兴趣爱好：</label>
                    <div class="layui-input-block">
                        <input type="checkbox" name="interest" value="看书" title="看书">
                        <input type="checkbox" name="interest" value="写字" title="写字">
                        <input type="checkbox" name="interest" value="跑步" title="跑步">
                        <input type="checkbox" name="interest" value="打羽毛球" title="打羽毛球">
                        <input type="checkbox" name="interest" value="敲代码" title="敲代码">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label" for="bio">个人说明：</label>
                    <div class="layui-input-block">
                        <textarea id="bio" name="description" placeholder="请输入内容" class="layui-textarea"></textarea>
                    </div>
                </div>
                <div class="layui-form-item">
                    <button type="submit" class="layui-btn layui-btn-normal">立即注册</button>
                </div>
                <div class="layui-form-item layui-text-center">
                    <a href="login.jsp">已有账号？登录</a>
                </div>
            </form>
        </div>
    </div>
    </div>
</div>
<script>
    layui.use('form', function(){
        var form = layui.form;
        form.render();
    });
</script>
</body>
</html>
